A Theory of Program Modifications

نویسندگان

  • G. Ramalingam
  • Thomas W. Reps
چکیده

The need to integrate several versions of a program into a common one arises frequently, but it is a tedious and time consuming task to merge programs by hand. The program-integration algorithm proposed by Horwitz, Prins, and Reps provides a way to create a semantics-based tool for integrating a base program with two or more variants. The integration algorithm is based on the assumption that any change in the behaviour, rather than the text, of a program variant is significant and must be preserved in the merged program. An integration system based on this algorithm will determine whether the variants incorporate interfering changeS, and, if they do not, create an integrated program that includes all changes as well as all features of the base program that are preserved in all variants. This paper studies the algebraic properties of the program-integration operation, such as whether there is a law of associativity. (For example, in this context associativity means: "If three variants of a given base are to be integrated by a pair of two-variant integrations, the same result is produced no matter which two variants are integrated first.") Whereas an earlier work that studied the algebraic properties of program integration formalized the Horwitz-Prins-Reps integration algorithm as an operation in a Brouwerian algebra, this paper introduces a new algebraic structure in which integration can be formalized, called fmalgebra. In fm-algebra, the notion of integration derives from the concepts of a program modification and an operation for combining modifications. (Thus, while earlier work concerned an algebra of programs, this paper concerns an algebra of program modifications.) The potential benefits of an algebraic theory of integration, such as the one developed in this paper, are actually three-fold: (1) It allows one to understand the fundamental algebraic properties of integration---laws that express the "essence of integration." Such laws allow one to reason formally about the integration operation. (2) It provides knowledge that is useful for designing alternative integration algorithms whose power and scope are beyond the capabilities of current algorithms. (3) Because such a theory formalizes certain operations that are more primitive than the integration operation, an implementation of these primitive operations can form the basis for a more powerful program-manipulation system than one based on just the integration operation. This work was supported in part by a David and Lucile Packard Fellowship for Science and Engineering, by the National Science Foundation under grant DCR-8552602, by the Defense Advanced Research Projects Agency, monitored by the Office of Naval Research under contract N00014-88-K-0590, as well as by grants from IBM, DEC, and Xerox. G. Ramalingana was supported by an IBM graduate fellowship.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Stability of higher derivative modifications of Einstein - aether theory

A time-like unit vector field is used to generalize Einstein's gravity. The resulting theory, called the Einstein-aether theory, consists of a minimal coupling between an aether field and gravity. Inspired by the Bopp-Podolsky electrodynamics, which is well-known for removing the singularity at the point charge, we generalized the Einstein-aether theory by adding such a higher order self-intera...

متن کامل

Epigenetic Modifications of Host Genes Induced by Bacterial Infection

Introduction: Epigenetic mechanisms regulate expression of the genome to generate various cell types during development or coordinate cellular responses to external stimulus. While epigenetics is of fundamental importance in eukaryotes, it plays a different role in bacteria. This article uncovers the most important recent data on how bacteria can alter epigenetic marks and can also contribute t...

متن کامل

Image Optimization in Single Photon Emission Computed Tomography by Hardware Modifications with Monte Carlo Simulation

Introduction: In Single Photon Emission Computed Tomography (SPECT), the projection data used for image reconstruction are distorted by several factors, including attenuation and scattering of gamma rays, collimator structure, data acquisition method, organ motion, and washout of radiopharmaceuticals. All these make reconstruction of a quantitative SPECT image very difficult. Simulation of a SP...

متن کامل

Efficacy of attachment based parent training program on social cognition in adolescents with high function autism

Aim:The purpose of this study was evaluating efficacy of attachment based parent training program on social cognition in adolescents with high function autism. Method: The method of study was semi-experimental in pretest- posttest with unequal groups design. The statistical population of the study included all mothers and their autistic adolescents who referred to 5 mental health centers in Teh...

متن کامل

تجربه سال آخر دانشجویان کارشناسی پرستاری در محیط های بالینی: فخر حرفه ای

Final year experience of BSN Students in the clinical environment: Professional Pride Introduction: Clinical practice is considered a very important part of the nursing education. Effective and dynamic interactions among the students, Health care providers, instructors, and the clinical environment and its elements affect their professional development. This report is part of a major study tha...

متن کامل

Policy, Theory, and Evaluation: Stop Mixing the Fruit Salad; Comment on “Developing a Framework for a Program Theory-Based Approach to Evaluating Policy Processes and Outcomes: Health in All Policies in South Australia”

The study of Health in All Policies (HiAP) is gaining momentum. Authors are increasingly turning to wide swathes of political and social theory to frame (Program) Theory Based (or Informed) Evaluation (TBE) approaches. TBE for HiAP is not only prudent, it adds a level of elegance and insight to the research toolbox. However, it is still necessary to organize theoretical thinking appropriately. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1991